package com.qing.seckill.result;

import com.baomidou.mybatisplus.extension.api.R;

public class Result {

	private Boolean status;

	private String message;

	public Result() {
	}

	public Boolean getStatus() {
		return status;
	}

	public void setStatus(Boolean status) {
		this.status = status;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public Result(Boolean status, String message) {
		this.status = status;
		this.message = message;
	}

	public static Result success() {
		return new Result(true, "success");
	}

	public static Result success(String message) {
		return new Result(true, message);
	}

	public static Result fail() {
		return new Result(false, "fail");
	}

	public static Result fail(String message) {
		return new Result(false, message);
	}


}
